home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 January / PCWorld_2002-01_cd.bin / Novinky / Becher / 1. Zlaty Kalich / ZlatyKalich.exe / scripts / DefineButton2_1619 / BUTTONCONDACTION on(release).as next >
Text File  |  2001-11-12  |  2KB  |  98 lines

  1. on(release){
  2.    if(_root.poz == "c")
  3.    {
  4.       _root.pepa.gotoAndPlay("cb");
  5.    }
  6.    else if(_root.poz == "b")
  7.    {
  8.       if(_root.bednahofstate == 0)
  9.       {
  10.          if(_root.draglej == 0)
  11.          {
  12.             _root.pepa.gotoAndPlay("clean");
  13.          }
  14.          else if(_root.draglej == 7)
  15.          {
  16.             _root.stopdragall();
  17.             if(_root.izvuk == 1)
  18.             {
  19.                _root.loadzvuk.gotoAndPlay("bunkr2talk_nevim");
  20.             }
  21.             else
  22.             {
  23.                _root.bunkr2talk.gotoAndPlay("nevim");
  24.             }
  25.          }
  26.          else
  27.          {
  28.             _root.stopdragall();
  29.             if(_root.izvuk == 1)
  30.             {
  31.                _root.loadzvuk.gotoAndPlay("bunkr2talk_nepujde");
  32.             }
  33.             else
  34.             {
  35.                _root.bunkr2talk.gotoAndPlay("nepujde");
  36.             }
  37.          }
  38.       }
  39.       else if(_root.bednahofstate == 1)
  40.       {
  41.          if(_root.draglej == 0)
  42.          {
  43.             if(_root.izvuk == 1)
  44.             {
  45.                _root.loadzvuk.gotoAndPlay("bunkr2talk_rukneotevru");
  46.             }
  47.             else
  48.             {
  49.                _root.bunkr2talk.gotoAndPlay("rukneotevru");
  50.             }
  51.          }
  52.          else if(_root.draglej == 7)
  53.          {
  54.             _root.stopdragall();
  55.             _root.pepa.gotoAndPlay("crowbar");
  56.          }
  57.          else
  58.          {
  59.             _root.stopdragall();
  60.             if(_root.izvuk == 1)
  61.             {
  62.                _root.loadzvuk.gotoAndPlay("bunkr2talk_neotevru");
  63.             }
  64.             else
  65.             {
  66.                _root.bunkr2talk.gotoAndPlay("neotevru");
  67.             }
  68.          }
  69.       }
  70.       else if(_root.bednahofstate == 2)
  71.       {
  72.          _root.stopdragall();
  73.          _root.itembar_add(24);
  74.          _root.bednahofstate = 3;
  75.          if(_root.izvuk == 1)
  76.          {
  77.             _root.loadzvuk.gotoAndPlay("bunkr2talk_hoffmanovka");
  78.          }
  79.          else
  80.          {
  81.             _root.bunkr2talk.gotoAndPlay("hoffmanovka");
  82.          }
  83.       }
  84.       else
  85.       {
  86.          _root.stopdragall();
  87.          if(_root.izvuk == 1)
  88.          {
  89.             _root.loadzvuk.gotoAndPlay("bunkr2talk_hoffstaci");
  90.          }
  91.          else
  92.          {
  93.             _root.bunkr2talk.gotoAndPlay("hoffstaci");
  94.          }
  95.       }
  96.    }
  97. }
  98.